const path = require('path');
const log4js = require('koa-log4');
log4js.configure(path.join(__dirname, 'log4js.json'))

const successLogger = log4js.koaLogger(log4js.getLogger('success'), { level: 'info' })
const errLogger = log4js.getLogger('errors')
const httpLogger = log4js.getLogger('http')

module.exports = {
  successLogger,
  errLogger,
  httpLogger
}